<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/html">
<head>
    <meta charset="UTF-8">
    <title>vuejs练习</title>

</head>
<body>
<!-- 子组件模板 -->
<template id="child-template">
    <input v-model="msg">
    <button v-on:click="notify">Dispatch Event</button>
</template>

<!-- 父组件模板 -->
<div id="events-example">
    <p>Messages: {{ messages | json }}</p>
    <child></child>
</div>
<script src='http://cdn.jsdelivr.net/vue/1.0.26/vue.min.js'></script>
<script src="index.js"></script>
</body>
</html>